import java.util.concurrent.atomic.*;

/**
 * User
 * A representation of a client user.
 * @author James Varvaro
 */
public class User {
    private long userid;
    private String username;
    private String instrumentType;
    private boolean init;
    
    public User(long aUserid, String aUsername, String anInstrument) {
        this.userid = aUserid;
        this.username = aUsername;
        this.instrumentType = anInstrument;
        this.init = false;
    }
    
    public void setUserid(long id) {
        this.userid = id;
    }
    
    public void setUsername(String uname) {
        this.username = uname;
    }
    
    public long getUserid() {
        return userid;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setInit() {
        this.init = true;
    }
    
    public boolean isInit() {
        return this.init;
    }
    
    public void setInstrument(String type) {
        instrumentType = type;
    }
    
    public String getInstrument() {
        return instrumentType;
    }
}
